package com.ruoyi.mall.product.domain.service.impl;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.mall.product.domain.service.IPmsSkuAttrValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mall.product.domain.repository.PmsSkuAttrValueMapper;
import com.ruoyi.mall.product.domain.entity.PmsSkuAttrValue;

/**
 * sku销售属性&值Service业务层处理
 *
 * @author zhangqishu
 * @date 2022-05-25
 */
@Service("pmsSkuAttrValueService")
public class PmsSkuAttrValueServiceImpl implements IPmsSkuAttrValueService
{
    @Autowired
    private PmsSkuAttrValueMapper pmsSkuAttrValueMapper;

    /**
     * 查询sku销售属性&值
     *
     * @param id sku销售属性&值主键
     * @return sku销售属性&值
     */
    @Override
    public PmsSkuAttrValue selectPmsSkuAttrValueById(Long id)
    {
        return pmsSkuAttrValueMapper.selectPmsSkuAttrValueById(id);
    }

    /**
     * 查询sku销售属性&值列表
     *
     * @param pmsSkuAttrValue sku销售属性&值
     * @return sku销售属性&值
     */
    @Override
    public List<PmsSkuAttrValue> selectPmsSkuAttrValueList(PmsSkuAttrValue pmsSkuAttrValue)
    {
        return pmsSkuAttrValueMapper.selectPmsSkuAttrValueList(pmsSkuAttrValue);
    }

    /**
     * 新增sku销售属性&值
     *
     * @param pmsSkuAttrValue sku销售属性&值
     * @return 结果
     */
    @Override
    public int insertPmsSkuAttrValue(PmsSkuAttrValue pmsSkuAttrValue)
    {
        return pmsSkuAttrValueMapper.insertPmsSkuAttrValue(pmsSkuAttrValue);
    }

    /**
     * 修改sku销售属性&值
     *
     * @param pmsSkuAttrValue sku销售属性&值
     * @return 结果
     */
    @Override
    public int updatePmsSkuAttrValue(PmsSkuAttrValue pmsSkuAttrValue)
    {
        return pmsSkuAttrValueMapper.updatePmsSkuAttrValue(pmsSkuAttrValue);
    }

    /**
     * 批量删除sku销售属性&值
     *
     * @param ids 需要删除的sku销售属性&值主键
     * @return 结果
     */
    @Override
    public int deletePmsSkuAttrValueByIds(Long[] ids)
    {
        return pmsSkuAttrValueMapper.deletePmsSkuAttrValueByIds(ids);
    }

    /**
     * 删除sku销售属性&值信息
     *
     * @param id sku销售属性&值主键
     * @return 结果
     */
    @Override
    public int deletePmsSkuAttrValueById(Long id)
    {
        return pmsSkuAttrValueMapper.deletePmsSkuAttrValueById(id);
    }

    @Override
    public boolean saveBatch(Collection<PmsSkuAttrValue> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<PmsSkuAttrValue> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<PmsSkuAttrValue> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(PmsSkuAttrValue entity) {
        return false;
    }

    @Override
    public PmsSkuAttrValue getOne(Wrapper<PmsSkuAttrValue> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<PmsSkuAttrValue> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<PmsSkuAttrValue> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<PmsSkuAttrValue> getBaseMapper() {
        return null;
    }
}
